package org.yierge.crm.ssm.plus.users.manager.controller;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.yierge.crm.ssm.plus.common.web.JsonResult;

@Slf4j
@RestController(value = "manager_studentController")
@RequestMapping("/account/manager")
@Validated
@Api(tags = "3.1 项目经理学生管理模块")
public class StudentController {
    public StudentController() {
        log.debug("创建二级管理员控制器类对象：RegController");
    }

    // TODO 完成成绩查看功能
    @GetMapping("/student-score")
    @PreAuthorize("hasAuthority('/account/manager/student-score')")
    @ApiOperation("查询学生成绩列表")
    @ApiOperationSupport(order = 601)
    @ApiImplicitParams({
            @ApiImplicitParam(name="page", value = "页码", defaultValue = "1", dataType = "long"),
            @ApiImplicitParam(name = "queryType", value = "查询类型，当需要查询全部时，此参数值应为all")
    })
    public JsonResult studentScoreList(Integer page, String queryType){



        return JsonResult.ok();
    }
    // TODO

    // TODO 完成学生技术栈成绩查看功能
    @GetMapping("/stack")
    @PreAuthorize("hasAuthority('/account/manager/stack')")
    @ApiOperation("查询学生技术栈成绩列表")
    @ApiOperationSupport(order = 602)
    @ApiImplicitParams({
            @ApiImplicitParam(name="page", value = "页码", defaultValue = "1", dataType = "long"),
            @ApiImplicitParam(name = "queryType", value = "查询类型，当需要查询全部时，此参数值应为all")
    })
    public JsonResult studentStackScoreList(Integer page, String queryType){



        return JsonResult.ok();
    }
    // TODO


}
